<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/8/26 0026
 * Time: 18:37
 */
$门派玩家 = $game->clubplayer_get_player();
$链接_门派菜单 = '';

if (!isset($arr_data->canshu)){
    $arr_data->canshu = "into_club";
}


switch ($arr_data->canshu){
    case "joinclub":
        $row = $game->clubplayer_join($arr_data->clubid);
        $player = $game->player_get_uinfo();
        $out_html =  "恭喜你成功加入<br />{$变量_系统->链接_返回游戏_按钮短}";
        break;
    case "outclub":
        $game->clubplayer_out();
        $player = $game->player_get_uinfo();
        $out_html = "门派退出成功<br />{$变量_系统->链接_返回游戏_按钮短}";
        break;
    case "deleteclub":
        $game->club_delete_sid($门派玩家->sid);
        $out_html =  "门派解散成功<br />{$变量_系统->链接_返回游戏_按钮短}";
        break;
    case "into_renzhi":
        $out_html = $game->club_creator_renzhi($变量_系统);
        break;
    case "renzhi":
        $game->clubplayer_set_uclv($门派玩家->clubid , $arr_data->uid , $arr_data->zhiwei);
        $out_html = $game->club_creator_info($arr_data , $变量_系统);
        break;
    case "into_club":


        if(!$门派玩家 && !isset($arr_data->clubid)){
            $out_html = $game->club_creator_notclub($变量_系统);
        }else{
            $out_html = $game->club_creator_info($arr_data , $变量_系统);
        }

        break;


}

echo $out_html;